<!DOCTYPE HTML>
<html>
	<head>
		<style type="text/css">
            #myCanvas{
            	height:100px;width:200px;border:1px solid #ccc;margin:20px 20px;
            }
		</style>
	</head>
	<body>

	    <canvas id="myCanvas">Yours browser does not support canvas element.</canvas>

	    <script type="text/javascript">
            var c = document.getElementById("myCanvas");
            var cxt = c.getContext("2d");
            cxt.moveTo(20, 10);
            cxt.lineTo(150, 50);
            cxt.lineTo(10, 50);
            cxt.stroke();

	    </script>
		
	</body>
</html>